//
//  MySessionManager.h
//  掌上宏力
//
//  Created by admin on 2017/5/22.
//  Copyright © 2017年 admin. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface MySessionManager : NSObject
singleton_interface(MySessionManager)

@property (nonatomic,strong) AFURLSessionManager *URLManager;

@property (nonatomic,strong) AFHTTPSessionManager *HTTPManager;

@property (nonatomic,copy) NSString *token;

-(void)accessCommonServerWithURLStr:(NSString *)url body:(NSDictionary *)dic success:(void(^)(id result))success failure:(void(^)(id result))failure;

-(void)accessNewsServerWithURLStr:(NSString *)url body:(NSDictionary *)dic success:(void(^)(id result))success failure:(void(^)(id result))failure;

-(void)accessHXTServerWithURLStr:(NSString *)url success:(void(^)(id result))success failure:(void(^)(id result))failure;

-(void)loginWithUSER:(User *)user success:(void (^)(id result))success failure:(void (^)(id result))failure;

@end
